<template>
    <div class="page-yangjiang">
        <div class="page-yangjiang-side">
            <side-component></side-component>
        </div>
        <div class="page-yangjiang-content">
            <div class="page-yangjiang-header">
                <div class="page-yangjiang-menu">
                    <div v-for="(item, index) in menuList" :key="index" class="page-yangjiang-menuitem" :class="{'page-yangjiang-menuitema': item.ative}">
                        <div class="page-yangjiang-menuitemicon" :class="['page-yangjiang-'+item.icon]"></div>
                        <div>{{item.name}}</div> 
                    </div>
                </div>
                <div class="page-yangjiang-options"></div>
            </div>
            <div class="page-yangjiang-info">
                
            </div>
        </div>
    </div>
</template>

<script setup>
import sideComponent from './components/side.vue'
import { ref } from 'vue'
const menuList = ref([
    {
        name: 'GIS地图',
        icon: 'mapviewicon',
        ative: true
    },
    {
        name: '视频调度',
        icon: 'playicon',
        ative: false
    },
    {
        name: '音频调度',
        icon: 'voiceicon',
        ative: false
    },
    {
        name: '资料存档',
        icon: 'documenticon',
        ative: false
    }
])

</script>

<style lang="scss" scoped>
.page-yangjiang{
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    font-size: 12px;
    &-side{
        width: 300px;
        height: 100%;
        overflow: hidden;
        background: #032744;
    }
    &-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    &-header{
        height: 80px;
        background: #fff;
        display: flex;
        flex-direction: row; 
    }
    &-menu{
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    &-menuitem{
        margin-left: 60px;
        display: flex;
        flex-direction: row;
        color: #333333;
        align-items: center;
        font-size: 20px;
        position: relative;
        height: 80px;
        cursor: pointer;
    }
    &-menuitema{
        color:#2F7AFE;
    }
    &-menuitema::after{
        position: absolute;
        bottom: 0;
        width: 100%;
        left: 0;
        right: 0;
        height: 6px;
        background: #2F7AFE;
        content: '';
        border-radius: 6px;
    }
    &-menuitemicon{
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }
    &-mapviewicon{
        background: url("@/assets/home/mapviewicon.png") center center no-repeat;
        background-size: 24px auto;
    }
    &-playicon{
        background: url("@/assets/home/playbackicon.png") center center no-repeat;
        background-size: 24px auto;
    }
    &-voiceicon{
        background: url("@/assets/home/voiceicon.png") center center no-repeat;
        background-size: 24px auto;
    }
    &-documenticon{
        background: url("@/assets/home/documenticon.png") center center no-repeat;
        background-size: 24px auto;
    }
}
</style>